#ifndef AMPLSTEPWINDOW_H
#define AMPLSTEPWINDOW_H

#include <QWidget>
#include <dbHelper.h>
#include <QShowEvent>
#include <QVBoxLayout>
#include <CommonHelper.h>
#include <QDebug>
#include <QTableWidgetItem>
#include <loghelper.h>
#include <tcpclient.h>
#include <QRegExpValidator>
#include <QComboBox>

namespace Ui {
class amplStepWindow;
}

class amplStepWindow : public QWidget
{
    Q_OBJECT

public:
    explicit amplStepWindow(QWidget *parent = nullptr);
    ~amplStepWindow();
    QString amplGuid="";
    int isReadStatus;

signals:
    void changeAmplProWindow();
    void changeExpProWindow();
    void changeExperimentInfoWindow();

private slots:
    void on_pushButton_2_clicked();
    void delBtnClicked();
    void addBtnClicked();
    void on_pushButton_4_clicked();

    void on_pushButton_5_clicked();

    void on_tableWidget_currentCellChanged(int currentRow, int currentColumn, int previousRow, int previousColumn);

private:
    void resizeEvent(QResizeEvent *event) override;
    void refShadeWindow();
    void showEvent(QShowEvent *event) override;

private:
    Ui::amplStepWindow *ui;
    CommonHelper* common;
    loghelper * logClient;
    TcpClient *tcpClient;
    QList<QString> label;
    void RefreshTableData();
    QWidget*  mpShadeWindow;
    bool canRefInfo;

};

#endif // AMPLSTEPWINDOW_H
